
<?php
$start_mem = memory_get_usage();
$arr = range( 1, 10000 );
foreach( $arr as $item ){
    //echo $item.',';
}
$end_mem = memory_get_usage();
echo " use mem : ".(( $end_mem - $start_mem ) / 1024).'bytes'.PHP_EOL;